import { Component, OnInit } from '@angular/core';

@Component({
    selector: 'app-stur-direct',
    templateUrl: './stur-direct.component.html',
    styleUrls: ['./stur-direct.component.less']
})
export class SturDirectComponent implements OnInit {
    flag = true;
    num = 1;
    arr = [1, 2];
    user = {
        name: "111"
    };
    JSON = JSON;

    name = "tom";

    names = ["tom","jack","roge","aa","bb"];
    
    obj = {
        a:1,
        b:2,
        c:1
    }

    constructor() { }

    ngOnInit() {
    }

    getKeys(arg){
        return Object.keys(arg);
    }
    getValues(arg){
        return Object.values(arg);
    }
    getEntries(arg){
        return Object.entries(arg);
    }
}
